package com.ruoyi.leasemanagement.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.leasemanagement.mapper.LeasemanagementMapper;
import com.ruoyi.leasemanagement.domain.Leasemanagement;
import com.ruoyi.leasemanagement.service.ILeasemanagementService;

/**
 * 租约管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-10-12
 */
@Service
public class LeasemanagementServiceImpl implements ILeasemanagementService 
{
    @Autowired
    private LeasemanagementMapper leasemanagementMapper;

    /**
     * 查询租约管理
     * 
     * @param leaseId 租约管理主键
     * @return 租约管理
     */
    @Override
    public Leasemanagement selectLeasemanagementByLeaseId(Long leaseId)
    {
        return leasemanagementMapper.selectLeasemanagementByLeaseId(leaseId);
    }

    /**
     * 查询租约管理列表
     * 
     * @param leasemanagement 租约管理
     * @return 租约管理
     */
    @Override
    public List<Leasemanagement> selectLeasemanagementList(Leasemanagement leasemanagement)
    {
        return leasemanagementMapper.selectLeasemanagementList(leasemanagement);
    }

    /**
     * 新增租约管理
     * 
     * @param leasemanagement 租约管理
     * @return 结果
     */
    @Override
    public int insertLeasemanagement(Leasemanagement leasemanagement)
    {
        return leasemanagementMapper.insertLeasemanagement(leasemanagement);
    }

    /**
     * 修改租约管理
     * 
     * @param leasemanagement 租约管理
     * @return 结果
     */
    @Override
    public int updateLeasemanagement(Leasemanagement leasemanagement)
    {
        return leasemanagementMapper.updateLeasemanagement(leasemanagement);
    }

    /**
     * 批量删除租约管理
     * 
     * @param leaseIds 需要删除的租约管理主键
     * @return 结果
     */
    @Override
    public int deleteLeasemanagementByLeaseIds(Long[] leaseIds)
    {
        return leasemanagementMapper.deleteLeasemanagementByLeaseIds(leaseIds);
    }

    /**
     * 删除租约管理信息
     * 
     * @param leaseId 租约管理主键
     * @return 结果
     */
    @Override
    public int deleteLeasemanagementByLeaseId(Long leaseId)
    {
        return leasemanagementMapper.deleteLeasemanagementByLeaseId(leaseId);
    }
}
